package com.zmj.base;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class ResultCodeAndMsg implements ResultCode {
    private int code;
    private String msg;
    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String msg() {
        return this.msg;
    }

    public ResultCodeAndMsg(String msg) {
        this.msg = msg;
    }
}
